// newProduct 校验规则
export const rules = (ctx) => {
  const ruleList = Object.keys(ctx.form)
  let rulesObj = {}
  ruleList.map(item => {
    rulesObj[item] = {
      required: true,
      message: '*为必填项，不能为空',
      trigger: 'blur'
    }
  })
  return rulesObj
}
